
// 消费类型 options
export const consumOption = [
  { value: '01', label: '会员充值' },
  { value: '02', label: '场次预定' },
  { value: '03', label: '门票售卖' },
  { value: '04', label: '套餐购买' },
  { value: '05', label: '会员卡购买' },
  { value: '06', label: '商品购买' },
  { value: '07', label: '课程报名' },
  { value: '08', label: '活动报名' },
  { value: '09', label: '抽奖赠送' },
  { value: '10', label: '分享返佣' },
  { value: '11', label: '兑换游戏币' },
  { value: '12', label: '点餐' },
  { value: '29', label: '点餐退款' },
  { value: '30', label: '会员转账' },
  { value: '40', label: '提现' },
  { value: '51', label: '押金扣除' },
  { value: '72', label: '通用消费' },
  { value: '98', label: '余额调整' },
  { value: '99', label: '初始金额' }
]
// 全局 快捷日期选择
export const shortcuts = [
  {
    text: '近7天',
    onClick(picker) {
      const end = new Date()
      const start = new Date()
      end.setTime(start.getTime() + 3600 * 1000 * 24 * 6)
      picker.$emit('pick', [start, end])
    }
  },
  {
    text: '近30天',
    onClick(picker) {
      const end = new Date()
      const start = new Date()
      end.setTime(start.getTime() + 3600 * 1000 * 24 * 29)
      picker.$emit('pick', [start, end])
    }
  },
  {
    text: '近60天',
    onClick(picker) {
      const end = new Date()
      const start = new Date()
      end.setTime(start.getTime() + 3600 * 1000 * 24 * 59)
      picker.$emit('pick', [start, end])
    }
  },
  {
    text: '近90天',
    onClick(picker) {
      const end = new Date()
      const start = new Date()
      end.setTime(start.getTime() + 3600 * 1000 * 24 * 89)
      picker.$emit('pick', [start, end])
    }
  }
]
export const TJshortcuts = [
  {
    text: '近7天',
    onClick(picker) {
      const end = new Date()
      const start = new Date()
      start.setTime(end.getTime() - 3600 * 1000 * 24 * 6)
      picker.$emit('pick', [start, end])
    }
  },
  {
    text: '近30天',
    onClick(picker) {
      const end = new Date()
      const start = new Date()
      start.setTime(end.getTime() - 3600 * 1000 * 24 * 29)
      picker.$emit('pick', [start, end])
    }
  },
  {
    text: '近60天',
    onClick(picker) {
      const end = new Date()
      const start = new Date()
      start.setTime(end.getTime() - 3600 * 1000 * 24 * 59)
      picker.$emit('pick', [start, end])
    }
  },
  {
    text: '近90天',
    onClick(picker) {
      const end = new Date()
      const start = new Date()
      start.setTime(end.getTime() - 3600 * 1000 * 24 * 89)
      picker.$emit('pick', [start, end])
    }
  }
]
